import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';

/**
 * 设备管理
 */
const device: AppRouteModule = {
  path: '/phoneAuth',
  name: 'PhoneAuth',
  component: LAYOUT,
  redirect: '/phoneAuth/deviceList',
  meta: {
    orderNo: 17,
    icon: 'carbon:version',
    title: '增值服务管理',
  },
  children: [
    {
      path: 'phoneAuthList',
      name: 'PhoneAuthList',
      component: () => import('@/views/phoneAuth/phoneAuthList/index.vue'),
      meta: {
        title: '手机验证管理',
      },
    },
    {
      path: 'allocationRecord',
      name: 'AllocationRecord',
      component: () => import('@/views/phoneAuth/allocationRecord/index.vue'),
      meta: {
        title: '手机验证分配记录',
        hideMenu: true,
      },
    },
    {
      path: 'mobileCardReceive',
      name: 'MobileCardReceive',
      component: () => import('@/views/phoneAuth/mobileCardReceive/index.vue'),
      meta: {
        title: '移动卡领取',
      },
    },
  ],
};

export default device;
